import { DatabaseProportion, FileFailed, Layers } from '@icon-park/vue-next'
import { RouteRecordRaw } from 'vue-router'

export default [
  {
    path: '/compute',
    component: () => import('@renderer/layouts/compute/index.vue'),
    meta: { menu: { title: '预算明细', order: 100, isType: 'templateOne', icon: FileFailed } },
    children: [
      {
        name: 'basiceQuipment',
        path: 'basiceQuipment',
        component: () => import('@renderer/views/compute/template/budgetDetail/basiceQuipment.vue'),
        meta: { menu: { title: '基装预算' } },
      },
      {
        name: 'mainMaterials',
        path: 'mainMaterials',
        component: () => import('@renderer/views/compute/template/budgetDetail/mainMaterials.vue'),
        meta: { menu: { title: '主材预算' } },
      },
      {
        name: 'finished',
        path: 'finished',
        component: () => import('@renderer/views/compute/template/budgetDetail/finished.vue'),
        meta: { menu: { title: '成品定制预算' } },
      },
      {
        name: 'discount',
        path: 'discount',
        component: () => import('@renderer/views/compute/template/budgetDetail/discount.vue'),
        meta: { menu: { title: '优惠清单' } },
      },
    ],
  },
  {
    path: '/compute',
    component: () => import('@renderer/layouts/compute/index.vue'),
    meta: { menu: { title: '预算明细', order: 100, isType: 'templateTwo', icon: FileFailed } },
    children: [
      {
        name: 'total',
        path: 'total',
        component: () => import('@renderer/views/compute/template/budgetDetail/total.vue'),
        meta: { menu: { title: '整体预算' } },
      },
      {
        name: 'discount',
        path: 'discount',
        component: () => import('@renderer/views/compute/template/budgetDetail/discount.vue'),
        meta: { menu: { title: '优惠清单' } },
      },
    ],
  },
  {
    path: '/cost',
    component: () => import('@renderer/layouts/compute/index.vue'),
    meta: { menu: { title: '成本明细', order: 100, isType: 'public', icon: DatabaseProportion } },
    children: [
      {
        name: 'cost',
        path: '',
        component: () => import('@renderer/views/compute/template/cost/cost.vue'),
        meta: { menu: { title: '成本明细' } },
      },
    ],
  },
  {
    path: '/material',
    component: () => import('@renderer/layouts/compute/index.vue'),
    meta: { menu: { title: '材料明细', order: 100, isType: 'public', icon: Layers } },
    children: [
      {
        name: 'hydropower',
        path: '',
        component: () => import('@renderer/views/compute/template/material/hydropower.vue'),
        meta: { menu: { title: '水电材料' } },
      },
      {
        name: 'carpentryMain',
        path: 'carpentryMain',
        component: () => import('@renderer/views/compute/template/material/carpentryMain.vue'),
        meta: { menu: { title: '瓷砖主材' } },
      },
      {
        name: 'carpentry',
        path: 'carpentry',
        component: () => import('@renderer/views/compute/template/material/carpentry.vue'),
        meta: { menu: { title: '瓦工辅材' } },
      },
      {
        name: 'tileWorker',
        path: 'tileWorker',
        component: () => import('@renderer/views/compute/template/material/tileWorker.vue'),
        meta: { menu: { title: '木工材料' } },
      },
      {
        name: 'woodFloor',
        path: 'woodFloor',
        component: () => import('@renderer/views/compute/template/material/woodFloor.vue'),
        meta: { menu: { title: '木地板材料' } },
      },
      {
        name: 'wallPaint',
        path: 'wallPaint',
        component: () => import('@renderer/views/compute/template/material/wallPaint.vue'),
        meta: { menu: { title: '墙漆材料' } },
      },
    ],
  },
] as RouteRecordRaw[]
